package com.oocl.Homework3;

import java.util.Comparator;

class DateComparator implements Comparator<Customer> 
{ 
    public int compare (Customer left,Customer right) 
    { 
        return left.getDate().compareTo(right.getDate());
    } 
} 